home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 5
/
CD-ROM Today - The Disc (Issue 5)(November 1994).ISO
/
mac
/
Mac shareware
/
Education
/
RLaB
/
help
/
mod
< prev
next >
Wrap
Text File
|
1994-09-21
|
529b
|
19 lines
mod:
Syntax: mod( A , B )
Description:
The mod routine returns the floating point remainder of the
division of A by B: zero if B is zero or if A/B would
overflow; otherwise the number F with the same sign as A, such
that A = iB + F for some integer i, and |f| < |B|.
When the arguments to mod are two matrices, then an element by
element mod is performed. Mod works on complex number also.
mod(x,y) is equivalent to: n = int( x/y )
mod(x,y) = x - y.*n
mod() is implemented via libm.a fmod() function.